package com.pronhub.cloud.shop.redis;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Getter
@Setter
//接受到redis的信息
@ConfigurationProperties(prefix = "redis")//根据前缀信息加载进去 根据规则加载进去
public class RedisProperties {
    private String host;
    private int port ;
    private int timeout;
    private String password;
    private int poolMaxTotal;
    private int poolMaxIdle ;
    private int poolMaxWait;
}
